package com.sanben.common.web.page;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author: cyh
 * @description: 分页工具类
 * @date: 2020/8/03 10:57
 */
public class BasePageReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("当前页")
    private Integer pageNum;

    @ApiModelProperty("分页大小")
    private Integer pageSize;

    public Integer getPageNum() {
        return null == pageNum ? 1 : pageNum;
    }

    public Integer getPageSize() {
        return null == pageSize ? 10 : pageSize;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
